<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>Repetier-Firmware: src/ArduinoAVR/Repetier/Extruder.h Source File</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>

</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  <td id="projectlogo"><img alt="Logo" src="repetier-logo-trans128.png"/></td>
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">Repetier-Firmware
   &#160;<span id="projectnumber">0.91</span>
   </div>
   
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.7.6.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li><a href="annotated.html"><span>Data&#160;Structures</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>Globals</span></a></li>
    </ul>
  </div>
</div>
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
  initNavTree('_extruder_8h.html','');
</script>
<div id="doc-content">
<div class="header">
  <div class="headertitle">
<div class="title">src/ArduinoAVR/Repetier/Extruder.h</div>  </div>
</div><!--header-->
<div class="contents">
<a href="_extruder_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="preprocessor">#ifndef EXTRUDER_H_INCLUDED</span>
<a name="l00002"></a>00002 <span class="preprocessor"></span><span class="preprocessor">#define EXTRUDER_H_INCLUDED</span>
<a name="l00003"></a>00003 <span class="preprocessor"></span>
<a name="l00004"></a><a class="code" href="_extruder_8h.html#a8c84a613965a74a4e84d83425eae948c">00004</a> <span class="preprocessor">#define CELSIUS_EXTRA_BITS 3</span>
<a name="l00005"></a>00005 <span class="preprocessor"></span>
<a name="l00006"></a>00006 <span class="comment">//#ifdef TEMP_PID</span>
<a name="l00007"></a>00007 <span class="comment">//extern uint8_t current_extruder_out;</span>
<a name="l00008"></a>00008 <span class="comment">//#endif</span>
<a name="l00009"></a>00009 
<a name="l00010"></a>00010 <span class="comment">// Updates the temperature of all extruders and heated bed if it&#39;s time.</span>
<a name="l00011"></a>00011 <span class="comment">// Toggels the heater power if necessary.</span>
<a name="l00012"></a>00012 <span class="keyword">extern</span> <span class="keywordtype">bool</span> <a class="code" href="_extruder_8cpp.html#a315932161064446f91dee3f444feb52e" title="Report defect sensors.">reportTempsensorError</a>(); 
<a name="l00013"></a>00013 <span class="keyword">extern</span> uint8_t <a class="code" href="_extruder_8cpp.html#acf662ee7130e0dd201b34efdad6398e8" title="Temp. we want to monitor with our host. 1+NUM_EXTRUDER is heated bed.">manageMonitor</a>;
<a name="l00014"></a>00014 
<a name="l00015"></a><a class="code" href="_extruder_8h.html#a32f5d84c920892bfe4c7eed3c479abcf">00015</a> <span class="preprocessor">#define TEMPERATURE_CONTROLLER_FLAG_ALARM 1</span>
<a name="l00016"></a>00016 <span class="preprocessor"></span>
<a name="l00020"></a><a class="code" href="class_temperature_controller.html">00020</a> <span class="keyword">class </span><a class="code" href="class_temperature_controller.html">TemperatureController</a>
<a name="l00021"></a>00021 {
<a name="l00022"></a>00022     <span class="keyword">public</span>:
<a name="l00023"></a><a class="code" href="class_temperature_controller.html#a8700a88a5e4fff1fa5fd4ddaf093de58">00023</a>     uint8_t <a class="code" href="class_temperature_controller.html#a8700a88a5e4fff1fa5fd4ddaf093de58" title="pwm index for output control. 0-2 = Extruder, 3 = Fan, 4 = Heated Bed">pwmIndex</a>; 
<a name="l00024"></a><a class="code" href="class_temperature_controller.html#a1dde056b62710e02166dedd907f90cd4">00024</a>     uint8_t <a class="code" href="class_temperature_controller.html#a1dde056b62710e02166dedd907f90cd4" title="Type of temperature sensor.">sensorType</a>; 
<a name="l00025"></a><a class="code" href="class_temperature_controller.html#aca51ed4c72193b3dfba35c28d5ff7eec">00025</a>     uint8_t <a class="code" href="class_temperature_controller.html#aca51ed4c72193b3dfba35c28d5ff7eec" title="Pin to read extruder temperature.">sensorPin</a>; 
<a name="l00026"></a><a class="code" href="class_temperature_controller.html#ab04920387c302ba239d9b59bdbaed381">00026</a>     int16_t <a class="code" href="class_temperature_controller.html#ab04920387c302ba239d9b59bdbaed381" title="Currenttemperature value read from sensor.">currentTemperature</a>; 
<a name="l00027"></a><a class="code" href="class_temperature_controller.html#a79605ab0ded13d1f3b98779ae41921f5">00027</a>     int16_t <a class="code" href="class_temperature_controller.html#a79605ab0ded13d1f3b98779ae41921f5" title="Target temperature value in units of sensor.">targetTemperature</a>; 
<a name="l00028"></a><a class="code" href="class_temperature_controller.html#aaef2b12184c93d3d1e810e16b0622d70">00028</a>     <span class="keywordtype">float</span> <a class="code" href="class_temperature_controller.html#aaef2b12184c93d3d1e810e16b0622d70" title="Current temperature in degC.">currentTemperatureC</a>; 
<a name="l00029"></a><a class="code" href="class_temperature_controller.html#aa74b6e6ce4377461c89007835536d846">00029</a>     <span class="keywordtype">float</span> <a class="code" href="class_temperature_controller.html#aa74b6e6ce4377461c89007835536d846" title="Target temperature in degC.">targetTemperatureC</a>; 
<a name="l00030"></a><a class="code" href="class_temperature_controller.html#a0e3b91c39a85d7abe4bba766714dcf0a">00030</a>     uint32_t <a class="code" href="class_temperature_controller.html#a0e3b91c39a85d7abe4bba766714dcf0a" title="Time in millis of the last temperature update.">lastTemperatureUpdate</a>; 
<a name="l00031"></a><a class="code" href="class_temperature_controller.html#aad69ed92f2a3f42e8056d9364bdecb7e">00031</a>     int8_t <a class="code" href="class_temperature_controller.html#aad69ed92f2a3f42e8056d9364bdecb7e" title="How is temperature controled. 0 = on/off, 1 = PID-Control, 3 = deat time control.">heatManager</a>; 
<a name="l00032"></a>00032 <span class="preprocessor">#ifdef TEMP_PID</span>
<a name="l00033"></a>00033 <span class="preprocessor"></span>    <span class="keywordtype">float</span> tempIState; 
<a name="l00034"></a>00034     uint8_t pidDriveMax; 
<a name="l00035"></a>00035     uint8_t pidDriveMin; 
<a name="l00036"></a>00036     <span class="keywordtype">float</span> pidPGain; 
<a name="l00037"></a>00037     <span class="keywordtype">float</span> pidIGain; 
<a name="l00038"></a>00038     <span class="keywordtype">float</span> pidDGain;  
<a name="l00039"></a>00039     uint8_t pidMax; 
<a name="l00040"></a>00040     <span class="keywordtype">float</span> tempIStateLimitMax;
<a name="l00041"></a>00041     <span class="keywordtype">float</span> tempIStateLimitMin;
<a name="l00042"></a>00042     uint8_t tempPointer;
<a name="l00043"></a>00043     <span class="keywordtype">float</span> tempArray[4];
<a name="l00044"></a>00044 <span class="preprocessor">#endif</span>
<a name="l00045"></a><a class="code" href="class_temperature_controller.html#aa2585d779da0ab21273a8d92de9a0ebe">00045</a> <span class="preprocessor"></span>    uint8_t <a class="code" href="class_temperature_controller.html#aa2585d779da0ab21273a8d92de9a0ebe">flags</a>;
<a name="l00046"></a>00046 
<a name="l00047"></a>00047     <span class="keywordtype">void</span> <a class="code" href="class_temperature_controller.html#a3e33e9cfc1e3cb7d918aeee45df9f169">setTargetTemperature</a>(<span class="keywordtype">float</span> target);
<a name="l00048"></a>00048     <span class="keywordtype">void</span> <a class="code" href="class_temperature_controller.html#acb70906f42292a995009918b00f32ce1">updateCurrentTemperature</a>();
<a name="l00049"></a>00049     <span class="keywordtype">void</span> <a class="code" href="class_temperature_controller.html#a424b8e012f4c53e5370042d7d046be3a">updateTempControlVars</a>();
<a name="l00050"></a><a class="code" href="class_temperature_controller.html#a68d2c172f1dcac955c4aa3fdd9d8672e">00050</a>     <span class="keyword">inline</span> <span class="keywordtype">bool</span> <a class="code" href="class_temperature_controller.html#a68d2c172f1dcac955c4aa3fdd9d8672e">isAlarm</a>() {<span class="keywordflow">return</span> <a class="code" href="class_temperature_controller.html#aa2585d779da0ab21273a8d92de9a0ebe">flags</a> &amp; <a class="code" href="_extruder_8h.html#a32f5d84c920892bfe4c7eed3c479abcf">TEMPERATURE_CONTROLLER_FLAG_ALARM</a>;}
<a name="l00051"></a><a class="code" href="class_temperature_controller.html#a4bb054bc8d3fb4e93b96256eefad0d8f">00051</a>     <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="class_temperature_controller.html#a4bb054bc8d3fb4e93b96256eefad0d8f">setAlarm</a>(<span class="keywordtype">bool</span> on) {<span class="keywordflow">if</span>(on) <a class="code" href="class_temperature_controller.html#aa2585d779da0ab21273a8d92de9a0ebe">flags</a> |= <a class="code" href="_extruder_8h.html#a32f5d84c920892bfe4c7eed3c479abcf">TEMPERATURE_CONTROLLER_FLAG_ALARM</a>; <span class="keywordflow">else</span> <a class="code" href="class_temperature_controller.html#aa2585d779da0ab21273a8d92de9a0ebe">flags</a> &amp;= ~<a class="code" href="_extruder_8h.html#a32f5d84c920892bfe4c7eed3c479abcf">TEMPERATURE_CONTROLLER_FLAG_ALARM</a>;}
<a name="l00052"></a>00052 <span class="preprocessor">#ifdef TEMP_PID</span>
<a name="l00053"></a>00053 <span class="preprocessor"></span>    <span class="keywordtype">void</span> autotunePID(<span class="keywordtype">float</span> temp,uint8_t controllerId,<span class="keywordtype">bool</span> storeResult);
<a name="l00054"></a>00054 <span class="preprocessor">#endif</span>
<a name="l00055"></a>00055 <span class="preprocessor"></span>};
<a name="l00056"></a>00056 
<a name="l00057"></a>00057 <span class="keyword">class </span><a class="code" href="class_extruder.html" title="Data to drive one extruder.">Extruder</a>;
<a name="l00058"></a>00058 <span class="keyword">extern</span> <a class="code" href="class_extruder.html" title="Data to drive one extruder.">Extruder</a> <a class="code" href="_extruder_8cpp.html#a485dac419eea0995358ffddf13135870">extruder</a>[];
<a name="l00059"></a>00059 
<a name="l00065"></a><a class="code" href="class_extruder.html">00065</a> <span class="keyword">class </span><a class="code" href="class_extruder.html" title="Data to drive one extruder.">Extruder</a>   <span class="comment">// Size: 12*1 Byte+12*4 Byte+4*2Byte = 68 Byte</span>
<a name="l00066"></a>00066 {
<a name="l00067"></a>00067     <span class="keyword">public</span>:
<a name="l00068"></a><a class="code" href="class_extruder.html#a9af7fb6cd3428b4cb073eb8f1457ba6a">00068</a>     <span class="keyword">static</span> <a class="code" href="class_extruder.html" title="Data to drive one extruder.">Extruder</a> *<a class="code" href="class_extruder.html#a9af7fb6cd3428b4cb073eb8f1457ba6a">current</a>;
<a name="l00069"></a>00069 <span class="preprocessor">#if FEATURE_DITTO_PRINTING</span>
<a name="l00070"></a>00070 <span class="preprocessor"></span>    <span class="keyword">static</span> uint8_t dittoMode;
<a name="l00071"></a>00071 <span class="preprocessor">#endif</span>
<a name="l00072"></a><a class="code" href="class_extruder.html#a1e6927fa1486224044e568f9c370519b">00072</a> <span class="preprocessor"></span>    uint8_t <a class="code" href="class_extruder.html#a1e6927fa1486224044e568f9c370519b">id</a>;
<a name="l00073"></a><a class="code" href="class_extruder.html#a236417b5cf3c14c47cb072fc6c77890f">00073</a>     int32_t <a class="code" href="class_extruder.html#a236417b5cf3c14c47cb072fc6c77890f">xOffset</a>;
<a name="l00074"></a><a class="code" href="class_extruder.html#a33cfbb97021630584638e5cf944ae0bc">00074</a>     int32_t <a class="code" href="class_extruder.html#a33cfbb97021630584638e5cf944ae0bc">yOffset</a>;
<a name="l00075"></a><a class="code" href="class_extruder.html#a54c14a56d7cef564c2b5387fcf02adbd">00075</a>     <span class="keywordtype">float</span> <a class="code" href="class_extruder.html#a54c14a56d7cef564c2b5387fcf02adbd" title="Steps per mm.">stepsPerMM</a>;        
<a name="l00076"></a><a class="code" href="class_extruder.html#a44d160a8532c0ff0ec30ba01d83c7f1e">00076</a>     uint8_t <a class="code" href="class_extruder.html#a44d160a8532c0ff0ec30ba01d83c7f1e" title="Pin to enable extruder stepper motor.">enablePin</a>;          
<a name="l00077"></a>00077 <span class="comment">//  uint8_t directionPin; ///&lt; Pin number to assign the direction.</span>
<a name="l00078"></a>00078 <span class="comment">//  uint8_t stepPin; ///&lt; Pin number for a step.</span>
<a name="l00079"></a><a class="code" href="class_extruder.html#a6304cdb8446a39b84dc1453f5f754ff7">00079</a>     uint8_t <a class="code" href="class_extruder.html#a6304cdb8446a39b84dc1453f5f754ff7">enableOn</a>;
<a name="l00080"></a>00080 <span class="comment">//  uint8_t invertDir; ///&lt; 1 if the direction of the extruder should be inverted.</span>
<a name="l00081"></a><a class="code" href="class_extruder.html#a62d2cbb5155a836f6a608d7d1fa36e5b">00081</a>     <span class="keywordtype">float</span> <a class="code" href="class_extruder.html#a62d2cbb5155a836f6a608d7d1fa36e5b" title="Maximum feedrate in mm/s.">maxFeedrate</a>;      
<a name="l00082"></a><a class="code" href="class_extruder.html#a75acfe5b3bb67a256ce3ad91cbac056e">00082</a>     <span class="keywordtype">float</span> <a class="code" href="class_extruder.html#a75acfe5b3bb67a256ce3ad91cbac056e" title="Maximum acceleration in mm/s^2.">maxAcceleration</a>;  
<a name="l00083"></a><a class="code" href="class_extruder.html#a2ed0aa16f907a4a096d86685f0f171e7">00083</a>     <span class="keywordtype">float</span> <a class="code" href="class_extruder.html#a2ed0aa16f907a4a096d86685f0f171e7" title="Maximum start feedrate in mm/s.">maxStartFeedrate</a>; 
<a name="l00084"></a><a class="code" href="class_extruder.html#a8836f143192e0cb80bf6891a0ab55d1e">00084</a>     int32_t <a class="code" href="class_extruder.html#a8836f143192e0cb80bf6891a0ab55d1e" title="Current extruder position in steps.">extrudePosition</a>;   
<a name="l00085"></a><a class="code" href="class_extruder.html#afb0df49f6552f9190d4a331a76d1b4ca">00085</a>     int16_t <a class="code" href="class_extruder.html#afb0df49f6552f9190d4a331a76d1b4ca" title="Time in seconds, a M109 command will wait to stabalize temperature.">watchPeriod</a>;        
<a name="l00086"></a><a class="code" href="class_extruder.html#a8c63b2225e2e6afbfa6c6f17c367d8cd">00086</a>     int16_t <a class="code" href="class_extruder.html#a8c63b2225e2e6afbfa6c6f17c367d8cd" title="Temperature to retract the filament when waiting for heatup.">waitRetractTemperature</a>; 
<a name="l00087"></a><a class="code" href="class_extruder.html#a4e553f3346b998ba08fa726dbdac343e">00087</a>     int16_t <a class="code" href="class_extruder.html#a4e553f3346b998ba08fa726dbdac343e" title="Units to retract the filament when waiting for heatup.">waitRetractUnits</a>;   
<a name="l00088"></a>00088 <span class="preprocessor">#ifdef USE_ADVANCE</span>
<a name="l00089"></a>00089 <span class="preprocessor"></span><span class="preprocessor">#ifdef ENABLE_QUADRATIC_ADVANCE</span>
<a name="l00090"></a>00090 <span class="preprocessor"></span>    <span class="keywordtype">float</span> advanceK;         
<a name="l00091"></a>00091 <span class="preprocessor">#endif</span>
<a name="l00092"></a>00092 <span class="preprocessor"></span>    <span class="keywordtype">float</span> advanceL;
<a name="l00093"></a>00093     int16_t advanceBacklash;
<a name="l00094"></a>00094 <span class="preprocessor">#endif</span>
<a name="l00095"></a><a class="code" href="class_extruder.html#a99b16c6a12c5f3a447114fad9e76c38d">00095</a> <span class="preprocessor"></span>    <a class="code" href="class_temperature_controller.html">TemperatureController</a> <a class="code" href="class_extruder.html#a99b16c6a12c5f3a447114fad9e76c38d">tempControl</a>;
<a name="l00096"></a><a class="code" href="class_extruder.html#af04c53509ecb43b37526e432792324f3">00096</a>     <span class="keyword">const</span> <span class="keywordtype">char</span> * <a class="code" href="u8glib__ex_8h.html#a75acaba9e781937468d0911423bc0c35">PROGMEM</a> <a class="code" href="class_extruder.html#af04c53509ecb43b37526e432792324f3">selectCommands</a>;
<a name="l00097"></a><a class="code" href="class_extruder.html#a0f698ddbd5ee04102f4c57410a3050c9">00097</a>     <span class="keyword">const</span> <span class="keywordtype">char</span> * <a class="code" href="u8glib__ex_8h.html#a75acaba9e781937468d0911423bc0c35">PROGMEM</a> <a class="code" href="class_extruder.html#a0f698ddbd5ee04102f4c57410a3050c9">deselectCommands</a>;
<a name="l00098"></a><a class="code" href="class_extruder.html#ab49b7c06991d6b29010d0c55cabfa355">00098</a>     uint8_t <a class="code" href="class_extruder.html#ab49b7c06991d6b29010d0c55cabfa355" title="Speed to use when enabled.">coolerSpeed</a>; 
<a name="l00099"></a><a class="code" href="class_extruder.html#a2e04c1d705b4212da4ac4e6034e302e8">00099</a>     uint8_t <a class="code" href="class_extruder.html#a2e04c1d705b4212da4ac4e6034e302e8" title="current PWM setting">coolerPWM</a>; 
<a name="l00100"></a>00100 
<a name="l00104"></a><a class="code" href="class_extruder.html#a8bdb088d09103a04aedad2c22d493ac8">00104</a>     <span class="keyword">static</span> <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="class_extruder.html#a8bdb088d09103a04aedad2c22d493ac8" title="Sends the high-signal to the stepper for next extruder step. Call this function only, if interrupts are disabled.">step</a>()
<a name="l00105"></a>00105     {
<a name="l00106"></a>00106 <span class="preprocessor">#if NUM_EXTRUDER==1</span>
<a name="l00107"></a>00107 <span class="preprocessor"></span>        <a class="code" href="fastio_8h.html#a3d38c0667426652d3fa2eb62f23e1591" title="Write to a pin wrapper.">WRITE</a>(<a class="code" href="_configuration_8h.html#a500527759a4c15569c4a69efe2811dc1">EXT0_STEP_PIN</a>,HIGH);
<a name="l00108"></a>00108 <span class="preprocessor">#else</span>
<a name="l00109"></a>00109 <span class="preprocessor"></span>        <span class="keywordflow">switch</span>(<a class="code" href="class_extruder.html#a9af7fb6cd3428b4cb073eb8f1457ba6a">Extruder::current</a>-&gt;<span class="keywordtype">id</span>)
<a name="l00110"></a>00110         {
<a name="l00111"></a>00111         <span class="keywordflow">case</span> 0:
<a name="l00112"></a>00112 <span class="preprocessor">#if NUM_EXTRUDER&gt;0</span>
<a name="l00113"></a>00113 <span class="preprocessor"></span>            <a class="code" href="fastio_8h.html#a3d38c0667426652d3fa2eb62f23e1591" title="Write to a pin wrapper.">WRITE</a>(<a class="code" href="_configuration_8h.html#a500527759a4c15569c4a69efe2811dc1">EXT0_STEP_PIN</a>,HIGH);
<a name="l00114"></a>00114 <span class="preprocessor">#if FEATURE_DITTO_PRINTING</span>
<a name="l00115"></a>00115 <span class="preprocessor"></span>            <span class="keywordflow">if</span>(Extruder::dittoMode) {
<a name="l00116"></a>00116                 <a class="code" href="fastio_8h.html#a3d38c0667426652d3fa2eb62f23e1591" title="Write to a pin wrapper.">WRITE</a>(<a class="code" href="_configuration_8h.html#a44f7f33acf4ae9e2d2d6873adba91b67">EXT1_STEP_PIN</a>,HIGH);
<a name="l00117"></a>00117             }
<a name="l00118"></a>00118 <span class="preprocessor">#endif</span>
<a name="l00119"></a>00119 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
<a name="l00120"></a>00120 <span class="preprocessor"></span>            <span class="keywordflow">break</span>;
<a name="l00121"></a>00121 <span class="preprocessor">#if defined(EXT1_STEP_PIN) &amp;&amp; NUM_EXTRUDER&gt;1</span>
<a name="l00122"></a>00122 <span class="preprocessor"></span>        <span class="keywordflow">case</span> 1:
<a name="l00123"></a>00123             <a class="code" href="fastio_8h.html#a3d38c0667426652d3fa2eb62f23e1591" title="Write to a pin wrapper.">WRITE</a>(<a class="code" href="_configuration_8h.html#a44f7f33acf4ae9e2d2d6873adba91b67">EXT1_STEP_PIN</a>,HIGH);
<a name="l00124"></a>00124             <span class="keywordflow">break</span>;
<a name="l00125"></a>00125 <span class="preprocessor">#endif</span>
<a name="l00126"></a>00126 <span class="preprocessor"></span><span class="preprocessor">#if defined(EXT2_STEP_PIN) &amp;&amp; NUM_EXTRUDER&gt;2</span>
<a name="l00127"></a>00127 <span class="preprocessor"></span>        <span class="keywordflow">case</span> 2:
<a name="l00128"></a>00128             <a class="code" href="fastio_8h.html#a3d38c0667426652d3fa2eb62f23e1591" title="Write to a pin wrapper.">WRITE</a>(EXT2_STEP_PIN,HIGH);
<a name="l00129"></a>00129             <span class="keywordflow">break</span>;
<a name="l00130"></a>00130 <span class="preprocessor">#endif</span>
<a name="l00131"></a>00131 <span class="preprocessor"></span><span class="preprocessor">#if defined(EXT3_STEP_PIN) &amp;&amp; NUM_EXTRUDER&gt;3</span>
<a name="l00132"></a>00132 <span class="preprocessor"></span>        <span class="keywordflow">case</span> 3:
<a name="l00133"></a>00133             <a class="code" href="fastio_8h.html#a3d38c0667426652d3fa2eb62f23e1591" title="Write to a pin wrapper.">WRITE</a>(EXT3_STEP_PIN,HIGH);
<a name="l00134"></a>00134             <span class="keywordflow">break</span>;
<a name="l00135"></a>00135 <span class="preprocessor">#endif</span>
<a name="l00136"></a>00136 <span class="preprocessor"></span><span class="preprocessor">#if defined(EXT4_STEP_PIN) &amp;&amp; NUM_EXTRUDER&gt;4</span>
<a name="l00137"></a>00137 <span class="preprocessor"></span>        <span class="keywordflow">case</span> 4:
<a name="l00138"></a>00138             <a class="code" href="fastio_8h.html#a3d38c0667426652d3fa2eb62f23e1591" title="Write to a pin wrapper.">WRITE</a>(EXT4_STEP_PIN,HIGH);
<a name="l00139"></a>00139             <span class="keywordflow">break</span>;
<a name="l00140"></a>00140 <span class="preprocessor">#endif</span>
<a name="l00141"></a>00141 <span class="preprocessor"></span><span class="preprocessor">#if defined(EXT5_STEP_PIN) &amp;&amp; NUM_EXTRUDER&gt;5</span>
<a name="l00142"></a>00142 <span class="preprocessor"></span>        <span class="keywordflow">case</span> 5:
<a name="l00143"></a>00143             <a class="code" href="fastio_8h.html#a3d38c0667426652d3fa2eb62f23e1591" title="Write to a pin wrapper.">WRITE</a>(EXT5_STEP_PIN,HIGH);
<a name="l00144"></a>00144             <span class="keywordflow">break</span>;
<a name="l00145"></a>00145 <span class="preprocessor">#endif</span>
<a name="l00146"></a>00146 <span class="preprocessor"></span>        }
<a name="l00147"></a>00147 <span class="preprocessor">#endif</span>
<a name="l00148"></a>00148 <span class="preprocessor"></span>    }
<a name="l00153"></a><a class="code" href="class_extruder.html#a52571d71f3c1fbf18afd83e2b8ff7fe6">00153</a>     <span class="keyword">static</span> <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="class_extruder.html#a52571d71f3c1fbf18afd83e2b8ff7fe6" title="Sets stepper signal to low for current extruder.">unstep</a>()
<a name="l00154"></a>00154     {
<a name="l00155"></a>00155 <span class="preprocessor">#if NUM_EXTRUDER==1</span>
<a name="l00156"></a>00156 <span class="preprocessor"></span>        <a class="code" href="fastio_8h.html#a3d38c0667426652d3fa2eb62f23e1591" title="Write to a pin wrapper.">WRITE</a>(<a class="code" href="_configuration_8h.html#a500527759a4c15569c4a69efe2811dc1">EXT0_STEP_PIN</a>,LOW);
<a name="l00157"></a>00157 <span class="preprocessor">#else</span>
<a name="l00158"></a>00158 <span class="preprocessor"></span>        <span class="keywordflow">switch</span>(<a class="code" href="class_extruder.html#a9af7fb6cd3428b4cb073eb8f1457ba6a">Extruder::current</a>-&gt;<span class="keywordtype">id</span>)
<a name="l00159"></a>00159         {
<a name="l00160"></a>00160         <span class="keywordflow">case</span> 0:
<a name="l00161"></a>00161 <span class="preprocessor">#if NUM_EXTRUDER&gt;0</span>
<a name="l00162"></a>00162 <span class="preprocessor"></span>            <a class="code" href="fastio_8h.html#a3d38c0667426652d3fa2eb62f23e1591" title="Write to a pin wrapper.">WRITE</a>(<a class="code" href="_configuration_8h.html#a500527759a4c15569c4a69efe2811dc1">EXT0_STEP_PIN</a>,LOW);
<a name="l00163"></a>00163 <span class="preprocessor">#if FEATURE_DITTO_PRINTING</span>
<a name="l00164"></a>00164 <span class="preprocessor"></span>            <span class="keywordflow">if</span>(Extruder::dittoMode) {
<a name="l00165"></a>00165                 <a class="code" href="fastio_8h.html#a3d38c0667426652d3fa2eb62f23e1591" title="Write to a pin wrapper.">WRITE</a>(<a class="code" href="_configuration_8h.html#a44f7f33acf4ae9e2d2d6873adba91b67">EXT1_STEP_PIN</a>,LOW);
<a name="l00166"></a>00166             }
<a name="l00167"></a>00167 <span class="preprocessor">#endif</span>
<a name="l00168"></a>00168 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
<a name="l00169"></a>00169 <span class="preprocessor"></span>            <span class="keywordflow">break</span>;
<a name="l00170"></a>00170 <span class="preprocessor">#if defined(EXT1_STEP_PIN) &amp;&amp; NUM_EXTRUDER&gt;1</span>
<a name="l00171"></a>00171 <span class="preprocessor"></span>        <span class="keywordflow">case</span> 1:
<a name="l00172"></a>00172             <a class="code" href="fastio_8h.html#a3d38c0667426652d3fa2eb62f23e1591" title="Write to a pin wrapper.">WRITE</a>(<a class="code" href="_configuration_8h.html#a44f7f33acf4ae9e2d2d6873adba91b67">EXT1_STEP_PIN</a>,LOW);
<a name="l00173"></a>00173             <span class="keywordflow">break</span>;
<a name="l00174"></a>00174 <span class="preprocessor">#endif</span>
<a name="l00175"></a>00175 <span class="preprocessor"></span><span class="preprocessor">#if defined(EXT2_STEP_PIN) &amp;&amp; NUM_EXTRUDER&gt;2</span>
<a name="l00176"></a>00176 <span class="preprocessor"></span>        <span class="keywordflow">case</span> 2:
<a name="l00177"></a>00177             <a class="code" href="fastio_8h.html#a3d38c0667426652d3fa2eb62f23e1591" title="Write to a pin wrapper.">WRITE</a>(EXT2_STEP_PIN,LOW);
<a name="l00178"></a>00178             <span class="keywordflow">break</span>;
<a name="l00179"></a>00179 <span class="preprocessor">#endif</span>
<a name="l00180"></a>00180 <span class="preprocessor"></span><span class="preprocessor">#if defined(EXT3_STEP_PIN) &amp;&amp; NUM_EXTRUDER&gt;3</span>
<a name="l00181"></a>00181 <span class="preprocessor"></span>        <span class="keywordflow">case</span> 3:
<a name="l00182"></a>00182             <a class="code" href="fastio_8h.html#a3d38c0667426652d3fa2eb62f23e1591" title="Write to a pin wrapper.">WRITE</a>(EXT3_STEP_PIN,LOW);
<a name="l00183"></a>00183             <span class="keywordflow">break</span>;
<a name="l00184"></a>00184 <span class="preprocessor">#endif</span>
<a name="l00185"></a>00185 <span class="preprocessor"></span><span class="preprocessor">#if defined(EXT4_STEP_PIN) &amp;&amp; NUM_EXTRUDER&gt;4</span>
<a name="l00186"></a>00186 <span class="preprocessor"></span>        <span class="keywordflow">case</span> 4:
<a name="l00187"></a>00187             <a class="code" href="fastio_8h.html#a3d38c0667426652d3fa2eb62f23e1591" title="Write to a pin wrapper.">WRITE</a>(EXT4_STEP_PIN,LOW);
<a name="l00188"></a>00188             <span class="keywordflow">break</span>;
<a name="l00189"></a>00189 <span class="preprocessor">#endif</span>
<a name="l00190"></a>00190 <span class="preprocessor"></span><span class="preprocessor">#if defined(EXT5_STEP_PIN) &amp;&amp; NUM_EXTRUDER&gt;5</span>
<a name="l00191"></a>00191 <span class="preprocessor"></span>        <span class="keywordflow">case</span> 5:
<a name="l00192"></a>00192             <a class="code" href="fastio_8h.html#a3d38c0667426652d3fa2eb62f23e1591" title="Write to a pin wrapper.">WRITE</a>(EXT5_STEP_PIN,LOW);
<a name="l00193"></a>00193             <span class="keywordflow">break</span>;
<a name="l00194"></a>00194 <span class="preprocessor">#endif</span>
<a name="l00195"></a>00195 <span class="preprocessor"></span>        }
<a name="l00196"></a>00196 <span class="preprocessor">#endif</span>
<a name="l00197"></a>00197 <span class="preprocessor"></span>    }
<a name="l00199"></a><a class="code" href="class_extruder.html#a8e6862e8be4778e936b97ba7e595b46e">00199</a>     <span class="keyword">static</span> <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="class_extruder.html#a8e6862e8be4778e936b97ba7e595b46e" title="Activates the extruder stepper and sets the direction.">setDirection</a>(uint8_t dir)
<a name="l00200"></a>00200     {
<a name="l00201"></a>00201 <span class="preprocessor">#if NUM_EXTRUDER==1</span>
<a name="l00202"></a>00202 <span class="preprocessor"></span>        <span class="keywordflow">if</span>(dir)
<a name="l00203"></a>00203             <a class="code" href="fastio_8h.html#a3d38c0667426652d3fa2eb62f23e1591" title="Write to a pin wrapper.">WRITE</a>(<a class="code" href="_configuration_8h.html#aa05066c7d6379276615dcab8f5e5eb1f">EXT0_DIR_PIN</a>,!<a class="code" href="_configuration_8h.html#a4d7548e7d077d740e66361405f821e36">EXT0_INVERSE</a>);
<a name="l00204"></a>00204         <span class="keywordflow">else</span>
<a name="l00205"></a>00205             <a class="code" href="fastio_8h.html#a3d38c0667426652d3fa2eb62f23e1591" title="Write to a pin wrapper.">WRITE</a>(<a class="code" href="_configuration_8h.html#aa05066c7d6379276615dcab8f5e5eb1f">EXT0_DIR_PIN</a>,<a class="code" href="_configuration_8h.html#a4d7548e7d077d740e66361405f821e36">EXT0_INVERSE</a>);
<a name="l00206"></a>00206 <span class="preprocessor">#else</span>
<a name="l00207"></a>00207 <span class="preprocessor"></span>        <span class="keywordflow">switch</span>(<a class="code" href="class_extruder.html#a9af7fb6cd3428b4cb073eb8f1457ba6a">Extruder::current</a>-&gt;<span class="keywordtype">id</span>)
<a name="l00208"></a>00208         {
<a name="l00209"></a>00209 <span class="preprocessor">#if NUM_EXTRUDER&gt;0</span>
<a name="l00210"></a>00210 <span class="preprocessor"></span>        <span class="keywordflow">case</span> 0:
<a name="l00211"></a>00211             <span class="keywordflow">if</span>(dir)
<a name="l00212"></a>00212                 <a class="code" href="fastio_8h.html#a3d38c0667426652d3fa2eb62f23e1591" title="Write to a pin wrapper.">WRITE</a>(<a class="code" href="_configuration_8h.html#aa05066c7d6379276615dcab8f5e5eb1f">EXT0_DIR_PIN</a>,!<a class="code" href="_configuration_8h.html#a4d7548e7d077d740e66361405f821e36">EXT0_INVERSE</a>);
<a name="l00213"></a>00213             <span class="keywordflow">else</span>
<a name="l00214"></a>00214                 <a class="code" href="fastio_8h.html#a3d38c0667426652d3fa2eb62f23e1591" title="Write to a pin wrapper.">WRITE</a>(<a class="code" href="_configuration_8h.html#aa05066c7d6379276615dcab8f5e5eb1f">EXT0_DIR_PIN</a>,<a class="code" href="_configuration_8h.html#a4d7548e7d077d740e66361405f821e36">EXT0_INVERSE</a>);
<a name="l00215"></a>00215 <span class="preprocessor">#if FEATURE_DITTO_PRINTING</span>
<a name="l00216"></a>00216 <span class="preprocessor"></span>            <span class="keywordflow">if</span>(Extruder::dittoMode) {
<a name="l00217"></a>00217                 <span class="keywordflow">if</span>(dir)
<a name="l00218"></a>00218                     <a class="code" href="fastio_8h.html#a3d38c0667426652d3fa2eb62f23e1591" title="Write to a pin wrapper.">WRITE</a>(<a class="code" href="_configuration_8h.html#aac15c2cf2fef99337a69696c1407049a">EXT1_DIR_PIN</a>,!<a class="code" href="_configuration_8h.html#aaf701c8f32898b0ae48c54cf2ff40718">EXT1_INVERSE</a>);
<a name="l00219"></a>00219                 <span class="keywordflow">else</span>
<a name="l00220"></a>00220                     <a class="code" href="fastio_8h.html#a3d38c0667426652d3fa2eb62f23e1591" title="Write to a pin wrapper.">WRITE</a>(<a class="code" href="_configuration_8h.html#aac15c2cf2fef99337a69696c1407049a">EXT1_DIR_PIN</a>,<a class="code" href="_configuration_8h.html#aaf701c8f32898b0ae48c54cf2ff40718">EXT1_INVERSE</a>);
<a name="l00221"></a>00221             }
<a name="l00222"></a>00222 <span class="preprocessor">#endif</span>
<a name="l00223"></a>00223 <span class="preprocessor"></span>            <span class="keywordflow">break</span>;
<a name="l00224"></a>00224 <span class="preprocessor">#endif</span>
<a name="l00225"></a>00225 <span class="preprocessor"></span><span class="preprocessor">#if defined(EXT1_DIR_PIN) &amp;&amp; NUM_EXTRUDER&gt;1</span>
<a name="l00226"></a>00226 <span class="preprocessor"></span>        <span class="keywordflow">case</span> 1:
<a name="l00227"></a>00227             <span class="keywordflow">if</span>(dir)
<a name="l00228"></a>00228                 <a class="code" href="fastio_8h.html#a3d38c0667426652d3fa2eb62f23e1591" title="Write to a pin wrapper.">WRITE</a>(<a class="code" href="_configuration_8h.html#aac15c2cf2fef99337a69696c1407049a">EXT1_DIR_PIN</a>,!<a class="code" href="_configuration_8h.html#aaf701c8f32898b0ae48c54cf2ff40718">EXT1_INVERSE</a>);
<a name="l00229"></a>00229             <span class="keywordflow">else</span>
<a name="l00230"></a>00230                 <a class="code" href="fastio_8h.html#a3d38c0667426652d3fa2eb62f23e1591" title="Write to a pin wrapper.">WRITE</a>(<a class="code" href="_configuration_8h.html#aac15c2cf2fef99337a69696c1407049a">EXT1_DIR_PIN</a>,<a class="code" href="_configuration_8h.html#aaf701c8f32898b0ae48c54cf2ff40718">EXT1_INVERSE</a>);
<a name="l00231"></a>00231             <span class="keywordflow">break</span>;
<a name="l00232"></a>00232 <span class="preprocessor">#endif</span>
<a name="l00233"></a>00233 <span class="preprocessor"></span><span class="preprocessor">#if defined(EXT2_DIR_PIN) &amp;&amp; NUM_EXTRUDER&gt;2</span>
<a name="l00234"></a>00234 <span class="preprocessor"></span>        <span class="keywordflow">case</span> 2:
<a name="l00235"></a>00235             <span class="keywordflow">if</span>(dir)
<a name="l00236"></a>00236                 <a class="code" href="fastio_8h.html#a3d38c0667426652d3fa2eb62f23e1591" title="Write to a pin wrapper.">WRITE</a>(EXT2_DIR_PIN,!EXT2_INVERSE);
<a name="l00237"></a>00237             <span class="keywordflow">else</span>
<a name="l00238"></a>00238                 <a class="code" href="fastio_8h.html#a3d38c0667426652d3fa2eb62f23e1591" title="Write to a pin wrapper.">WRITE</a>(EXT2_DIR_PIN,EXT2_INVERSE);
<a name="l00239"></a>00239             <span class="keywordflow">break</span>;
<a name="l00240"></a>00240 <span class="preprocessor">#endif</span>
<a name="l00241"></a>00241 <span class="preprocessor"></span><span class="preprocessor">#if defined(EXT3_DIR_PIN) &amp;&amp; NUM_EXTRUDER&gt;3</span>
<a name="l00242"></a>00242 <span class="preprocessor"></span>        <span class="keywordflow">case</span> 3:
<a name="l00243"></a>00243             <span class="keywordflow">if</span>(dir)
<a name="l00244"></a>00244                 <a class="code" href="fastio_8h.html#a3d38c0667426652d3fa2eb62f23e1591" title="Write to a pin wrapper.">WRITE</a>(EXT3_DIR_PIN,!EXT3_INVERSE);
<a name="l00245"></a>00245             <span class="keywordflow">else</span>
<a name="l00246"></a>00246                 <a class="code" href="fastio_8h.html#a3d38c0667426652d3fa2eb62f23e1591" title="Write to a pin wrapper.">WRITE</a>(EXT3_DIR_PIN,EXT3_INVERSE);
<a name="l00247"></a>00247             <span class="keywordflow">break</span>;
<a name="l00248"></a>00248 <span class="preprocessor">#endif</span>
<a name="l00249"></a>00249 <span class="preprocessor"></span><span class="preprocessor">#if defined(EXT4_DIR_PIN) &amp;&amp; NUM_EXTRUDER&gt;4</span>
<a name="l00250"></a>00250 <span class="preprocessor"></span>        <span class="keywordflow">case</span> 4:
<a name="l00251"></a>00251             <span class="keywordflow">if</span>(dir)
<a name="l00252"></a>00252                 <a class="code" href="fastio_8h.html#a3d38c0667426652d3fa2eb62f23e1591" title="Write to a pin wrapper.">WRITE</a>(EXT4_DIR_PIN,!EXT4_INVERSE);
<a name="l00253"></a>00253             <span class="keywordflow">else</span>
<a name="l00254"></a>00254                 <a class="code" href="fastio_8h.html#a3d38c0667426652d3fa2eb62f23e1591" title="Write to a pin wrapper.">WRITE</a>(EXT4_DIR_PIN,EXT4_INVERSE);
<a name="l00255"></a>00255             <span class="keywordflow">break</span>;
<a name="l00256"></a>00256 <span class="preprocessor">#endif</span>
<a name="l00257"></a>00257 <span class="preprocessor"></span><span class="preprocessor">#if defined(EXT5_DIR_PIN) &amp;&amp; NUM_EXTRUDER&gt;5</span>
<a name="l00258"></a>00258 <span class="preprocessor"></span>        <span class="keywordflow">case</span> 5:
<a name="l00259"></a>00259             <span class="keywordflow">if</span>(dir)
<a name="l00260"></a>00260                 <a class="code" href="fastio_8h.html#a3d38c0667426652d3fa2eb62f23e1591" title="Write to a pin wrapper.">WRITE</a>(EXT5_DIR_PIN,!EXT5_INVERSE);
<a name="l00261"></a>00261             <span class="keywordflow">else</span>
<a name="l00262"></a>00262                 <a class="code" href="fastio_8h.html#a3d38c0667426652d3fa2eb62f23e1591" title="Write to a pin wrapper.">WRITE</a>(EXT5_DIR_PIN,EXT5_INVERSE);
<a name="l00263"></a>00263             <span class="keywordflow">break</span>;
<a name="l00264"></a>00264 <span class="preprocessor">#endif</span>
<a name="l00265"></a>00265 <span class="preprocessor"></span>        }
<a name="l00266"></a>00266 <span class="preprocessor">#endif</span>
<a name="l00267"></a>00267 <span class="preprocessor"></span>    }
<a name="l00268"></a><a class="code" href="class_extruder.html#a0a87bc76d9e423caf9fa05c72764f88e">00268</a>     <span class="keyword">static</span> <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="class_extruder.html#a0a87bc76d9e423caf9fa05c72764f88e">enable</a>()
<a name="l00269"></a>00269     {
<a name="l00270"></a>00270 <span class="preprocessor">#if NUM_EXTRUDER==1</span>
<a name="l00271"></a>00271 <span class="preprocessor"></span><span class="preprocessor">#if EXT0_ENABLE_PIN&gt;-1</span>
<a name="l00272"></a>00272 <span class="preprocessor"></span>        <a class="code" href="fastio_8h.html#a3d38c0667426652d3fa2eb62f23e1591" title="Write to a pin wrapper.">WRITE</a>(<a class="code" href="_configuration_8h.html#a1d2b536d0751a942656d556613481b95">EXT0_ENABLE_PIN</a>,<a class="code" href="_configuration_8h.html#a30f9bdf00c36767d4c9329f636de4e82">EXT0_ENABLE_ON</a> );
<a name="l00273"></a>00273 <span class="preprocessor">#endif</span>
<a name="l00274"></a>00274 <span class="preprocessor"></span><span class="preprocessor">#else</span>
<a name="l00275"></a>00275 <span class="preprocessor"></span>        <span class="keywordflow">if</span>(<a class="code" href="class_extruder.html#a9af7fb6cd3428b4cb073eb8f1457ba6a">Extruder::current</a>-&gt;<a class="code" href="class_extruder.html#a44d160a8532c0ff0ec30ba01d83c7f1e" title="Pin to enable extruder stepper motor.">enablePin</a> &gt; -1)
<a name="l00276"></a>00276             digitalWrite(<a class="code" href="class_extruder.html#a9af7fb6cd3428b4cb073eb8f1457ba6a">Extruder::current</a>-&gt;<a class="code" href="class_extruder.html#a44d160a8532c0ff0ec30ba01d83c7f1e" title="Pin to enable extruder stepper motor.">enablePin</a>,<a class="code" href="class_extruder.html#a9af7fb6cd3428b4cb073eb8f1457ba6a">Extruder::current</a>-&gt;<a class="code" href="class_extruder.html#a6304cdb8446a39b84dc1453f5f754ff7">enableOn</a>);
<a name="l00277"></a>00277 <span class="preprocessor">#if FEATURE_DITTO_PRINTING</span>
<a name="l00278"></a>00278 <span class="preprocessor"></span>        <span class="keywordflow">if</span>(Extruder::dittoMode) {
<a name="l00279"></a>00279             <span class="keywordflow">if</span>(extruder[1].<a class="code" href="class_extruder.html#a44d160a8532c0ff0ec30ba01d83c7f1e" title="Pin to enable extruder stepper motor.">enablePin</a> &gt; -1)
<a name="l00280"></a>00280                 digitalWrite(extruder[1].<a class="code" href="class_extruder.html#a44d160a8532c0ff0ec30ba01d83c7f1e" title="Pin to enable extruder stepper motor.">enablePin</a>,extruder[1].<a class="code" href="class_extruder.html#a6304cdb8446a39b84dc1453f5f754ff7">enableOn</a>);
<a name="l00281"></a>00281         }
<a name="l00282"></a>00282 <span class="preprocessor">#endif</span>
<a name="l00283"></a>00283 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
<a name="l00284"></a>00284 <span class="preprocessor"></span>    }
<a name="l00285"></a>00285     <span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code" href="class_extruder.html#a68854a1919537b9a223261849a973aa6">manageTemperatures</a>();
<a name="l00286"></a>00286     <span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code" href="class_extruder.html#a30fda02302465621235f18287f92a016">disableCurrentExtruderMotor</a>();
<a name="l00287"></a>00287     <span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code" href="class_extruder.html#ad79d9a88a3155f100a4679fe5e31051d" title="Select extruder ext_num.">selectExtruderById</a>(uint8_t extruderId);
<a name="l00288"></a>00288     <span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code" href="class_extruder.html#a3de6389d6f361381ae46410acbb16c94">disableAllHeater</a>();
<a name="l00289"></a>00289     <span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code" href="class_extruder.html#a299b2711d43b3492a9915f93c65c006a" title="Initalizes all extruder.">initExtruder</a>();
<a name="l00290"></a>00290     <span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code" href="class_extruder.html#afd2fec963215a36aba2a2f3bdff88d3e">initHeatedBed</a>();
<a name="l00291"></a>00291     <span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code" href="class_extruder.html#af14f5cb4bc81fa1e21d7a10bb1ad142d">setHeatedBedTemperature</a>(<span class="keywordtype">float</span> temp_celsius,<span class="keywordtype">bool</span> <a class="code" href="ui_8cpp.html#a4cdb62ccad20bd76e7ff3da83985b54d">beep</a> = <span class="keyword">false</span>);
<a name="l00292"></a>00292     <span class="keyword">static</span> <span class="keywordtype">float</span> <a class="code" href="class_extruder.html#a0533febb3ac2d36158b886b16a14e858">getHeatedBedTemperature</a>();
<a name="l00293"></a>00293     <span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code" href="class_extruder.html#a69509481ec42fa69be700e5aa6706093">setTemperatureForExtruder</a>(<span class="keywordtype">float</span> temp_celsius,uint8_t extr,<span class="keywordtype">bool</span> <a class="code" href="ui_8cpp.html#a4cdb62ccad20bd76e7ff3da83985b54d">beep</a> = <span class="keyword">false</span>);
<a name="l00294"></a>00294 };
<a name="l00295"></a>00295 
<a name="l00296"></a>00296 <span class="preprocessor">#if HAVE_HEATED_BED</span>
<a name="l00297"></a>00297 <span class="preprocessor"></span><span class="preprocessor">#define NUM_TEMPERATURE_LOOPS NUM_EXTRUDER+1</span>
<a name="l00298"></a>00298 <span class="preprocessor"></span><span class="keyword">extern</span> <a class="code" href="class_temperature_controller.html">TemperatureController</a> heatedBedController;
<a name="l00299"></a>00299 <span class="preprocessor">#else</span>
<a name="l00300"></a><a class="code" href="_extruder_8h.html#a732572fe39e3be2beed6b641e11cb29b">00300</a> <span class="preprocessor"></span><span class="preprocessor">#define NUM_TEMPERATURE_LOOPS NUM_EXTRUDER</span>
<a name="l00301"></a>00301 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
<a name="l00302"></a><a class="code" href="_extruder_8h.html#a72eef0d6c84eb620f90075d42ff252ef">00302</a> <span class="preprocessor"></span><span class="preprocessor">#define TEMP_INT_TO_FLOAT(temp) ((float)(temp)/(float)(1&lt;&lt;CELSIUS_EXTRA_BITS))</span>
<a name="l00303"></a><a class="code" href="_extruder_8h.html#aff23d04f7889b1fe552bc0622ab2443a">00303</a> <span class="preprocessor"></span><span class="preprocessor">#define TEMP_FLOAT_TO_INT(temp) ((int)((temp)*(1&lt;&lt;CELSIUS_EXTRA_BITS)))</span>
<a name="l00304"></a>00304 <span class="preprocessor"></span>
<a name="l00305"></a>00305 <span class="comment">//extern Extruder *Extruder::current;</span>
<a name="l00306"></a>00306 <span class="keyword">extern</span> <a class="code" href="class_temperature_controller.html">TemperatureController</a> *<a class="code" href="_extruder_8cpp.html#a0644388d0727745182f33056c5b030c4">tempController</a>[<a class="code" href="_extruder_8h.html#a732572fe39e3be2beed6b641e11cb29b">NUM_TEMPERATURE_LOOPS</a>];
<a name="l00307"></a>00307 <span class="keyword">extern</span> uint8_t <a class="code" href="_extruder_8cpp.html#aead8bf2fe743650b4fbd1a811ab91710">autotuneIndex</a>;
<a name="l00308"></a>00308 
<a name="l00309"></a>00309 
<a name="l00310"></a>00310 <span class="preprocessor">#endif // EXTRUDER_H_INCLUDED</span>
</pre></div></div><!-- contents -->
</div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Data Structures</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Friends</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&#160;</span>Defines</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

  <div id="nav-path" class="navpath">
    <ul>
      <li class="navelem"><a class="el" href="_extruder_8h.html">Extruder.h</a>      </li>

    <li class="footer">Generated on Mon Dec 30 2013 18:53:02 for Repetier-Firmware by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.6.1 </li>
   </ul>
 </div>


</body>
</html>
